<template>
  <div>
    <div class="card-top">
      <div><img :src="require('../../assets/pc-header.jpg')" /></div>
      <div class="text">
        <h1>Admin</h1>
        <p>超级管理员</p>
      </div>
    </div>
    <hr />
    <div class="card-bottom">
      <p>
        上次登陆时间: <span>{{ user.time }}</span>
      </p>
      <p>
        上次登陆地点: <span>{{ user.address }}</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "userBar",

  data() {
    return {
      user: {
        address: "桂林",
        time: "2022-8-28",
      },
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.card-top {
  display: flex;
  > div {
    margin: 0 30px;
    > img {
      width: 130px;
      height: 130px;
      border-radius: 50%;
    }
    > h1 {
      margin: 0;
      padding: 0;
      font-size: 25px;
    }
    > p {
      margin: 0;
      padding: 0;
    }
  }
  > div:nth-child(1){
      padding: 5px;
      border-radius: 50%;
      border: 1px solid #909399;
      box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
  }
  > div:nth-child(2) {
    margin: 30px 20px;
  }
}
.card-bottom {
  > p {
    > span {
      margin: 0 50px;
    }
  }
}
</style>